package homework.homework01;

public class Programmer extends People {
    //提供构造构造器,调用父类构造器,初始化,不认就只能get与set

    public Programmer() {
    }

    public Programmer(String name, String workId, double salary) {
        super(name, workId, salary);
    }

    //由于父类的方法不符合,进行方法重写

    @Override//重写检验注解
    public void work(){
        System.out.println("工号为" + getWorkId() + "的" + getName() + "程序员" +
                "拿着" + getSalary() + "工资和"  + "正在苦逼的写代码");
    }


}
